PDFDocument.SetPassword Method (console safe)
Sets a password for the document. If the password is set, document contents are encrypted.

SetPassword(
ownerPassword
as String,
userPassword
as String)
Parameters
- ownerPassword
- The password for the owner of the document. The owner can change the permission of the document. Zero length string, and the same value as user password are not allowed.
- userPassword
- The password for the user of the document. The user_password may be set to zero length string.
Remarks
See Also
PDFDocument Class